<template>
	<view>
		<tabBar :tabs='tabs'   ref="tabBar"  v-model="tabIndex"></tabBar>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item>
				<tab-list></tab-list>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	import tabBar from '@/pages/question/tab-bar.vue'
	import tabList from '@/pages/question/tab-list.vue'
	import tabs from '@/mock/question-tabs.js'
	export default {
		data() {
			return {
				tabs, //标签栏的数据
				tabIndex:0
			}
		},
		methods: {
		
		},
		onload(){
			
		},
		components:{
			tabBar,
			tabList
		},
		onNavigationBarSearchInputClicked() {
		 // 在 /common/mixin/mixin.js 中定义了
		 this.navTo('/pages/search/search')
		}	
	}
</script>

<style>

</style>
